package xin.ssm.jxc.model;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;


import com.fasterxml.jackson.annotation.JsonFormat;

public class GoodsPurchase{
  

	private Integer purchaseid;

    private BigDecimal purchaseprice;

    private Integer purchasenum;

    private BigDecimal purchasesum;
    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp purchasedate;
    
    private Date starttime;
    
    private Date endtime;

    private String employeecode;

    private Integer companyid;

    private Integer goodsid;

    private String purchasestatu;
    
    private Employees employee;

    private Companys companys;
    
    private Goods2 goods;
    
    public Companys getCompanys() {
		return companys;
	}

	public void setCompanys(Companys companys) {
		this.companys = companys;
	}

    public Integer getPurchaseid() {
        return purchaseid;
    }

    public void setPurchaseid(Integer purchaseid) {
        this.purchaseid = purchaseid;
    }

    public BigDecimal getPurchaseprice() {
        return purchaseprice;
    }

    public void setPurchaseprice(BigDecimal purchaseprice) {
        this.purchaseprice = purchaseprice;
    }

    public Integer getPurchasenum() {
        return purchasenum;
    }

    public void setPurchasenum(Integer purchasenum) {
        this.purchasenum = purchasenum;
    }

    public BigDecimal getPurchasesum() {
        return purchasesum;
    }

    public void setPurchasesum(BigDecimal purchasesum) {
        this.purchasesum = purchasesum;
    }

    public Timestamp getPurchasedate() {
        return purchasedate;
    }

    public void setPurchasedate(Timestamp purchasedate) {
        this.purchasedate = purchasedate;
    }

    public String getEmployeecode() {
        return employeecode;
    }

    public void setEmployeecode(String employeecode) {
        this.employeecode = employeecode == null ? null : employeecode.trim();
    }

    public Integer getCompanyid() {
        return companyid;
    }

    public void setCompanyid(Integer companyid) {
        this.companyid = companyid;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public String getPurchasestatu() {
        return purchasestatu;
    }

    public void setPurchasestatu(String purchasestatu) {
        this.purchasestatu = purchasestatu == null ? null : purchasestatu.trim();
    }

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	/**
	 * @return the employee
	 */
	public Employees getEmployee() {
		return employee;
	}
	//获取员工名
	public String getEmployeename() {
		return employee.getEmployeename();
	}
	/**
	 * @param employee the employee to set
	 */
	public void setEmployee(Employees employee) {
		this.employee = employee;
	}

	/**
	 * @return the companyname
	 */
	//获取公司名
	public String getCompanyname() {
		return companys.getCompanyname();
	}
	

	/**
	 * @return the goods
	 */
	public Goods2 getGoods2() {
		return goods;
	}
	//商品名
	public String getGoodsname() {
		return goods.getGoodsname();
	}
	/**
	 * @param goods the goods to set
	 */
	public void setGoods2(Goods2 goods) {
		this.goods = goods;
	}
    
}